﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GameControlTest
{
    public static class TransformExtensions
    {
        public static CompositeTransform Copy(this CompositeTransform compositeTransform)
        {
            CompositeTransform newT = new CompositeTransform();

            newT.CenterX = compositeTransform.CenterX;
            newT.CenterY = compositeTransform.CenterY;
            newT.TranslateX = compositeTransform.TranslateX;
            newT.TranslateY = compositeTransform.TranslateY;
            newT.Rotation = compositeTransform.Rotation;
            newT.ScaleX = compositeTransform.ScaleX;
            newT.ScaleY = compositeTransform.ScaleY;
            newT.SkewX = compositeTransform.SkewX;
            newT.SkewY = compositeTransform.SkewY;

            return newT;
        }
    }
}
